import { createRouter, createWebHashHistory } from "vue-router";
// import HomeView from "../views/HomeView.vue";
import Login from "../pages/login/login.vue";
import Reg from "../pages/reg/Reg.vue";
import Home from "../pages/home/Home.vue";

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
 
  {
    path: "/login",
    name: "login",
    component: Login,
  },
  {
    path: "/reg",
    name: "reg",
    component: Reg,
  },
  {
    path: "/home",
    name: "home",
    component: Home,
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
